package io;

import java.io.File;
import java.io.IOException;

/**
 * @Author @fiber-cloud
 * @Date 2025/10/7 10:26
 */
public class IODemo1 {
    public static void main(String[] args) throws IOException {
        File file = new File("./test.txt");//这个路径不要求真的存在
        System.out.println(file.getName());
        System.out.println(file.getParent());
        System.out.println(file.getPath());
        System.out.println(file.getAbsoluteFile());
        System.out.println(file.getCanonicalPath());

    }

}
